Report Syntax

Here is the XML for the "Claim_Pay_Rep" found in the Expenses sample:

<?xml version="1.0"?>
<XRKB>
  <OBJECT name="Claims_Pay_REP" type="REPORT" category="Dialogs_and_reports">
    <OKAGAIN value="TRUE"/>
    <BACK value="TRUE"/>
    <EXIT value="TRUE"/>
    <HOW value="TRUE"/>
    <PRINT value="TRUE"/>
    <COPY value="TRUE"/>
    <HELP value="TRUE" CONTEXTID="0"/>
    <SAVE value="TRUE"/>
    <AUTOPRINT value="FALSE"/>
    <CODE>
      Expenses Claim is Passed for {Services}\nof net {Cost_less_tax} and total {Cost}\n
    </CODE>
  </OBJECT>
</XRKB>

The report XML structure is split into two sections. The first has a list of tags which represent the options or buttons that are present on the report, <OKAGAIN>, <EXIT>, etc. By setting these to "True" or "False" using the value attribute you can toggle between the states of these options. The <CODE> tag contains the report text/code itself. Note that there is \n characters in the report, this means that a carriage return/line feed (CRLF) is present. When calling ImportXML or ImportXMLFromFile you will need to parse out any CRLFs from the report code and replace them all with \n characters. This also applies to Procedures, Events and Main Agendas.